package cn.gaozhong.ymcc.feign;

import cn.gaozhong.ymcc.doc.CourseDoc;
import cn.gaozhong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search" ,fallbackFactory = CourseSearchFeignClientFallBackFactory.class)
public interface CourseSearchFeignClient {
    @PostMapping("/saveCourse")
    JSONResult saveCourse(@RequestBody CourseDoc doc);
}
